<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<h2 class="contentTitle">报表列</h2>
<form id="pagerForm" method="post" action="${base}/core/dynamicreport/generate.do"  onsubmit="return ${targetType}Search(this);" >
	<input type="hidden" name="targetType" value="${targetType}">
	<input type="hidden" name="targetId" value="${targetId}">
	<input type="hidden" name="reportId" value="${reportId}">
<div class="pageContent">
	<table class="table" width="100%" layoutH="115"  targetType="${targetType}" orderField="${w:firstOrder(page.sort).property}"  orderDirection="${w:firstOrder(page.sort).direction}">
		<thead>
			<tr>
				<th width="50">序号</th>
					<th >分组</th>
					<th >小计</th>
				<th >数据列名称</th>
				<th  >表头</th>
				<th>数据类型</th>
		 <th>格式化</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="item" items="${colomns}" varStatus="status">
			<tr target="sid" rel="${item.id}">
			<td>${page.number*page.size+status.count}</td>
			<td><input name="${item.name}_group"   type="checkbox"></td>
			<td><input name="${item.name}_total"   type="checkbox"></td>
			 
		<td>${item.name}<input type="hidden" name="name" value="${item.name}"></td>
		<td><input type="text"  name="${item.name}_title" size="20"/></td>
		<td><w:code key="${item.type}" type="jdbc.type"><input type="hidden" name="${item.name}_type" value="${item.type}"></w:code></td>
	 	<td><input type="text"  name="${item.name}_pattern"  size="20"/></td>
			</tr>
			</c:forEach>
					</tbody>
	</table>
	
 		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
</div>
</form>